import request from '@/utils/request'

// 查询接待车主列表
export function listReception(query) {
  return request({
    url: '/bysj/reception/list',
    method: 'get',
    params: query
  })
}

// 查询接待车主详细
export function getReception(receptionId) {
  return request({
    url: '/bysj/reception/' + receptionId,
    method: 'get'
  })
}

// 新增接待车主
export function addReception(data) {
  return request({
    url: '/bysj/reception',
    method: 'post',
    data: data
  })
}

// 修改接待车主
export function updateReception(data) {
  return request({
    url: '/bysj/reception',
    method: 'put',
    data: data
  })
}

// 删除接待车主
export function delReception(receptionId) {
  return request({
    url: '/bysj/reception/' + receptionId,
    method: 'delete'
  })
}

// 导出接待车主
export function exportReception(query) {
  return request({
    url: '/bysj/reception/export',
    method: 'get',
    params: query
  })
}